home *** CD-ROM | disk | FTP | other *** search
/ Mac Format 1994 August / August CD.bin / Shareware / Utilities / Replace! folder / Replace! doc < prev   
Text File  |  1994-05-06  |  1KB  |  33 lines

  1.  
  2. Replace!
  3.  
  4. ©1994 by James W. Walker
  5. JWWalker@AOL.com
  6. May 5, 1994
  7.  
  8. When saving a file, one often sees a dialog like this:  (I am assuming that you are reading this document with TeachText or SimpleText, so you can see the pictures.)
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18. I don't know about you, but when I see this dialog, about 90% of the time I do want to replace the existing file.  So I used ResEdit hacks to make the Replace button be the default, like so,
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28. or to override the dialog entirely by saving with the option key down.  I distributed a document titled “Replace-Existing Hacks” describing how to make these modifications by editing the PACK 3 resource in the System file.  But lately, I have found that the hacks do not work on the PowerMacs and some other recent models, because these Macs use directory dialog code that is not in a PACK 3 resource.  Hence the accompanying extension, which makes Replace the default button.
  29.  
  30. The Replace! extension patches one trap, _DialogDispatch.  The patch is very small and fast, and _DialogDispatch isn’t called all that often anyway, so there will not be any detectable change in your Mac’s performance.  As for PowerMacs, since Apple has not yet implemented _DialogDispatch in native code, there would be no advantage to writing native code for my patch.
  31.  
  32. This extension is copyrighted freeware.  It may be distributed freely for non-commercial purposes.
  33.